<!DOCTYPE html>
<html>
<head>
    <title></title>
</head>
<body>
<iframe src="testIf.html" id="if1"></iframe>
<script type="text/javascript">
    var if1=document.getElementById('if1');
</script>
</body>
</html>